﻿#coding=utf-8
'''
Created on 2017-06-13

@author: sandy
'''

from pycommon import Const
from pycommon import Utils
from pycommon import Pack as packet

def login(sid):
    return packet.pack("HH",Const.CMD_XX2MGR_LOGIN,sid)


def uploadConfigFile(name,md5str,content):
    return packet.pack("HssS",Const.CMD_XX2MGR_UPLOAD_CONFIG_FILE,Utils.u2pstr(name),md5str,content)

def uploadHotFile(name,md5str,content,hotServers):
    return packet.pack("HssSs",Const.CMD_XX2MGR_HOT_UPLOAD_FILE,Utils.u2pstr(name),md5str,content,hotServers)
    